package com.ghostbusters.fingertrack.application;

import java.awt.AWTException;
import java.awt.Robot;
import java.awt.event.InputEvent;
import java.awt.event.KeyEvent;

public class Keyboard {

	
	public static void main(String[] args) {
		System.out.println(((char)((char)(new Character('a'))) - 32));
		
		System.out.println(KeyEvent.VK_A);
		
		try {
			Robot robot = new Robot();
			robot.mousePress(InputEvent.BUTTON1_MASK);
			robot.mouseRelease(InputEvent.BUTTON1_MASK);
			Character character = 'a';
			System.out.println((char)character - 32);
			robot.keyPress((char)character - 32);
			robot.keyRelease((char)character - 32);
		} catch (AWTException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
	
	
	public static void type(Character character) {
		Robot robot;
		try {
			robot = new Robot();
			robot.keyPress((char)character - 32);
			robot.keyRelease((char)character - 32);
		} catch (AWTException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
}
